package com.micolor.logr.runtime.enums;

/**
 * @BelongsProject: demo-collection
 * @BelongsPackage: com.micolor.annotationdemo.log.enums
 * @Author: Evan.Ge
 * @CreateTime: 2024-07-03  21:37
 * @Description: 定义记录日志的操作类型枚举
 * @Version: 1.0
 */
public enum OperateTypeEnum {
    //新增操作
    INSERT("I"),
    //更新操作
    UPDATE("U"),
    //删除操作
    DELETE("D"),
    //查询操作
    QUERY("Q");

    private String key;

    OperateTypeEnum(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
    @Override
    public String toString() {
        return key;
    }

}
